//
//  SoundBookCell.m
//  XMLY
//
//  Created by 曾杰 on 15/11/4.
//  Copyright © 2015年 曾杰. All rights reserved.
//

#import "SoundBookCell.h"

@implementation SoundBookCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _picImageView = [[UIImageView alloc]initWithFrame:CGRectMake(10, 10, 80, 80)];
        [self.contentView addSubview:_picImageView];
        _titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(100, 10,SCREEN_WIDTH-130, 20)];
        _titleLabel.font = [UIFont systemFontOfSize:15];
        [self.contentView addSubview:_titleLabel];
        
        _introLabel = [[UILabel alloc]initWithFrame:CGRectMake(100, 40,SCREEN_WIDTH-130, 20)];
        _introLabel.font = [UIFont systemFontOfSize:12];
        [self.contentView addSubview:_introLabel];
        
        
        _playCountImage = [[UIImageView alloc]initWithFrame:CGRectMake(100, 70, 16, 16)];
        _playCountImage.image = [UIImage imageNamed:@"erji"];
        [self.contentView addSubview:_playCountImage];
        
        
        _playCountLabel = [[UILabel alloc]initWithFrame:CGRectMake(120, 70, 100, 20)];
        _playCountLabel.font = [UIFont systemFontOfSize:12];
        [self.contentView addSubview:_playCountLabel];
        
        _tracksCountImage = [[UIImageView alloc]initWithFrame:CGRectMake(220, 70, 20, 20)];
        _tracksCountImage.image = [UIImage imageNamed:@"jishu"];
        [self.contentView addSubview:_tracksCountImage];
        
        
        _tracksCounts = [[UILabel alloc]initWithFrame:CGRectMake(240, 70, 100, 20)];
        _tracksCounts.font = [UIFont systemFontOfSize:12];
        [self.contentView addSubview:_tracksCounts];
    }
    return self;
}











- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
